<?php require("inc/common.inc.php");
if(empty($_COOKIE['userid']) || $_COOKIE['userid']=="" || empty($_COOKIE['username']) || $_COOKIE['username']==""){
	echo "<script>window.parent.location='/user/Login.php';</script>";
	exit();
}else{
	$mxuserid = $_COOKIE['userid'];
	$mxusername = $_COOKIE['username'];
	$mxnickname = $_COOKIE['nickname'];
}
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1" name="viewport">
<?php
$web_title="我的优惠券";
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><?php echo $web_title;?></title>
<meta name="searchtitle" content="<?php echo $web_title2.$webdb['metakeywords'];?>">
<meta name="description" content="<?php echo $web_title2.$webdb['webdsc'];?>">
<meta name="keywords" content="<?php echo $web_title2.$webdb['metakeywords'];?>">
<link href="images/style.css" rel="stylesheet" type="text/css" />
</head>
<script language="javascript" src="js/jquery_min.js"></script>
<body>
<?php
$head_hide=1;
require("w_head.php");
?>
<div id="pic" style="position:relative;"><img src="images/cjtop.jpg" width="100%" /><div style="height:40px; position:absolute;bottom:0px;left:0px;width:100%;background:rgba(0,0,0,0.7);color:#fff; text-align:center;line-height:40px;font-size:14px;">我的奖品</div></div>
	<div class="mycp_list" id="html_div"></div>
	 <div id="pagemore" style="display:none;"></div>
	 <div class="clear"></div>
	<div id="Div2" style="background: none repeat scroll 0px 0px rgb(247, 247, 247); margin-top: 10px; line-height: 30px; text-align: center; border: 1px solid rgb(240, 240, 240); display:none; margin-bottom:5px; clear:both; width:96%;">没有更多信息加载</div>
	 <div class="clear"></div>
<script language="javascript" src="js/page.js"></script>
<script type="text/javascript">
	var index = 1;
	var max = 1;
	var isnext = true;
	$(window).scroll(function () {
		// 当滚动到最底部以上100像素时， 加载新内容
		if (($(window).height() + $(window).scrollTop()) >=$("body").height()-10) {
			if (isnext) {
				index++;
				isnext=false;
				show_page2("getlist_mycp.php?actions=<?php echo $actions;?>&id=<?php echo $nei_classdb["fid"]?>&","#html_div","#pagemore",index,5);
			}
		}
	});
	show_page2("getlist_mycp.php?actions=<?php echo $actions;?>&id=<?php echo $nei_classdb["fid"]?>&","#html_div","#pagemore",index,5);
	function set_page_next(pageindex){
		index=pageindex;
		isnext = true;
	}
	function show_nohave(){
		isnext=false;
		$("#Div2").show();
	}
</script>
<?php require("w_foot.php")?>